package com.fasteat.menu.handler;

import com.fasteat.common.entity.Result;
import com.fasteat.menu.entity.client.Message;
import com.fasteat.menu.service.client.MessageClient;
import org.springframework.stereotype.Component;

/**
 * @author run
 * @since 2021/3/9 20:05
 */
@Component
public class MessageFallback implements MessageClient {

    @Override
    public Result pushMessageToUser(Message message) {
        return Result.error().data("向用户推送信息失败");
    }
}
